package com.lc1993929.hive;


import org.apache.hadoop.hive.ql.exec.UDF;

/**
 * Created by LiuChang on 2018/3/14.
 */
public class UserInfoParser extends UDF {
    public String evaluate(String field, Integer index) {
        String[] split = field.split(":");
        return split[index - 1];
    }
}
